package org.llc.user.dto.requst;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.llc.user.enums.RefreshTokenType;

import javax.validation.constraints.NotBlank;

/**
 * 刷新令牌DTO
 *
 * @author llc
 * @date 2019/11/27 12:58
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "ReqRefreshTokenDTO", description = "刷新tokenDTO")
public class ReqRefreshTokenDTO extends ReqAuthDTO {

    @NotBlank(message = "刷新token为空")
    @ApiModelProperty(value = "刷新token",required = true)
    private String refreshToken;

    /**
     * 刷新token类别 {@link RefreshTokenType}
     */
    @ApiModelProperty(value = "刷新token类别  1 只返回刷新的token,  2 返回刷新的token及refreshToken")
    private Integer type;
}
